package com.system.service;

import java.sql.SQLException;

import com.system.dao.IUserDao;
import com.system.dao.UserDaoImpl;
import com.system.entity.User;

public class UserServiceImpl implements IUserService {
	IUserDao userDao = new UserDaoImpl();

	public String checkUser(User user) {
		String username = null;
			try {
				username = userDao.checkUser(user);
			} catch (SQLException e) {
				e.printStackTrace();
			}
		return username;
	}

	public String changePassword(String username, String password) {
		try {
			return userDao.changePassword(username, password);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return "0";
	}

}
